import java.util.Scanner;

/**
 * @ClassName Test01
 * @Description TODO 考查对String的使用： 在str1中去除str2中的字符
 * @Date 2025/7/19 16:03
 * @Version 1.0
 */
public class Test01 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        //输入两个字符串str1和str2
        String str1 = in.nextLine();
        String str2 = in.nextLine();

        /*
        They are students.
        aeiou
         */
        //遍历str1并将属于str2中的字符删除
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < str1.length(); i++) {
            char ch = str1.charAt(i);
            //遍历str2将元素取出与str1中比较
            boolean flg = false;
            for (int j = 0; j < str2.length(); j++) {
                if (ch == str2.charAt(j)){
                    flg = true;
                    break;
                }
            }
            if (!flg) {
                sb.append(ch);
            }
        }
        System.out.println(sb);
    }
}
